﻿using System;
using System.Collections.Generic;

namespace QuickTest.Core.TestRunner
{
    /// <summary>
    /// The TestPackage class contains information about a suite of tests to be run by the test runner.
    /// </summary>
    [Serializable]
    public class TestPackage : ITestPackage
    {
        /// <summary>
        /// Gets a list of loaded assemblies.
        /// </summary>
        public IList<string> Assemblies { get; private set; }

        public string BasePath { get; private set; }

        public string Name { get; private set; }

        public TestPackage(IList<string> assemblies)
            : this(assemblies, null, null)
        {
        }

        public TestPackage(IList<string> assemblies, string name, string basePath)
        {
            if (assemblies == null)
                throw new ArgumentNullException("assemblies");

            Assemblies = assemblies;
            Name = name;
            BasePath = basePath;
        }
    }
}